package com.xja.service.impl;

import com.xja.mapper.PermissionsMapper;
import com.xja.pojo.Permissions;
import com.xja.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionsMapper permissionsMapper;
    @Override
    public List<Permissions> findPermissionByRoleId(Integer id) {
        return this.permissionsMapper.findPermissionByRoleId(id);
    }

    @Override
    public List<Permissions> findList() {
        return this.permissionsMapper.selectByExample(null);
    }
}
